﻿
Imports osi.service.argument

Namespace encrypt
    Public Class bypass
        Implements encryptor

        Public Shared ReadOnly instance As bypass

        Shared Sub New()
            instance = New bypass()
        End Sub

        Private Sub New()
        End Sub

        Public Shared Function create(ByVal parameter As var, ByRef o As encryptor) As Boolean
            o = instance
            Return True
        End Function

        Public Function decrypt(ByVal key() As Byte,
                                ByVal i() As Byte,
                                ByRef o() As Byte) As Boolean Implements encryptor.decrypt
            o = i
            Return True
        End Function

        Public Function encrypt(ByVal key() As Byte,
                                ByVal i() As Byte,
                                ByRef o() As Byte) As Boolean Implements encryptor.encrypt
            o = i
            Return True
        End Function
    End Class
End Namespace
